Assignemnt #52 and Forty-ninth Program

Code

///Name: Derrick Andreasen
///Period: 7
///Program name: forty-ninth Program
///File name: Fourt9Prog.java
///Date Finished:10/27/2015

import java.util.Scanner;

public class Fort9Prog
{
	public static void main( String[] args )
	{
        Scanner keyboard = new Scanner(System.in);
        
        int number, cNumber;
        
        cNumber = 6;
        
        System.out.println( "The Worst Number Guessing Game Ever!!!!" );
        System.out.println( "" );
        System.out.print( "I'm thinking of a number from 1-10.  Try to guess it! " );
        number = keyboard.nextInt();
        System.out.println( "" );
        
        if(number == cNumber)
        {
        System.out.println( "You got it! I can't beleive that you guessed it was " + cNumber + "!" );
        }
        
        if(number < cNumber)
        {
        System.out.println( "Well better luck next time. Oh and by the way, it was " + cNumber + "." );
        }
        
        if(number > cNumber)
        {
        System.out.println( "Well better luck next time. Oh and by the way, it was " + cNumber + "." );
        }
    }
}

Picture of the output

Assignment 52